
package com.mephi.gui;


import java.awt.Color;
import java.awt.Container;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JPanel;
import org.apache.log4j.Logger;



public class MainFrame extends MFrame implements MouseListener
{
	/*public MainFrame()
    {
		this(DEFAULT_FIELD_SIZE, DEFAULT_BRIGHT_FIELD_COLOR, DEFAULT_DARK_FIELD_COLOR); 	
    }*/
	
    public MainFrame()
    {
    	super(400,600);
    	/*setFieldSize(fieldSize);
    	setBrightFieldColor(brightFieldColor);
    	setDarkFieldColor(darkFieldColor);*/
    	//this.setSize(DEFAULT_BOARD_SIZE, DEFAULT_BOARD_SIZE);
    	//this.setSize(200, 200);
    	this.setBackground(Color.BLUE);
    	//this.setLayout(new FlowLayout());
    	
    	container = getContentPane();
        //setBounds(100, 100, 470, 495);
        setBackground(new Color(204, 204, 204));
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        //setResizable(false);
        container.setLayout(null);  
        //creates chessboard with pieces
        panBoard = new ChessboardImpl();
        panBoard.setBounds(3, 3, 480, 480);
        panBoard.setBackground(new Color(255, 255, 255));
        container.add(panBoard);
        setVisible(true);
    }

    
	public ChessboardImpl getPanBoard()
	{
		return panBoard;
	}


	@Override
	public void mouseClicked(MouseEvent e)
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseEntered(MouseEvent e)
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e)
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e)
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e)
	{
		// TODO Auto-generated method stub
		
	}
   
/*	public int getFieldSize()
	{
		return fieldSize;
	}

	public void setFieldSize(int fieldSize)
	{
		this.fieldSize = fieldSize;
	}
	
	public Color getDarkFieldColor()
	{
		return darkFieldColor;
	}

	public void setDarkFieldColor(Color darkFieldColor)
	{
		this.darkFieldColor = darkFieldColor;
	}

	public Color getBrightFieldColor()
	{
		return brightFieldColor;
	}

	public void setBrightFieldColor(Color brightFieldColor)
	{
		this.brightFieldColor = brightFieldColor;
	}*/
    
	/*private ImageIcon blackPawn = new ImageIcon(System.getProperty("user.dir") + "/images/Stauton/PAWN_BLACK_B.png");
    private static final int FIELDS_NUMBER = 8;
    private static final int DEFAULT_FIELD_SIZE = (int)Toolkit.getDefaultToolkit().getScreenSize().getHeight()/15;
    private static final int DEFAULT_BOARD_SIZE = 8*DEFAULT_FIELD_SIZE;
    private static Color DEFAULT_DARK_FIELD_COLOR = Color.DARK_GRAY;
    private static Color DEFAULT_BRIGHT_FIELD_COLOR = Color.WHITE;*/
    private static Logger logger = Logger.getLogger("LOG");
    private static final long serialVersionUID = -3710028093207824654L;
    /*private int fieldSize;
    private Color darkFieldColor;
    private Color brightFieldColor;*/
    
    
    private ChessboardImpl panBoard;// = new JPanel(new GridLayout(8, 8));
    private Container container;
}
